From 8929f81d2c67512a22361b2e6607481f31b4da9b Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Tue, 13 Jul 2010 19:34:48 +0100 Subject: [PATCH] tools/misc/xenpm: fix get-cpu-topology fix get-cpu-topology Signed-off-by: Wei Gang --- tools/misc/xenpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/misc/xenpm.c b/tools/misc/xenpm.c index 679b1f39d3..46ccb34974 100644 --- a/tools/misc/xenpm.c +++ b/tools/misc/xenpm.c @@ -858,7 +858,7 @@ void cpu_topology_func(int argc, char *argv[]) info.max_cpu_index = MAX_NR_CPU-1; printf("CPU\tcore\tsocket\tnode\n"); - for ( i = 0; i < info.max_cpu_index; i++ ) + for ( i = 0; i <= info.max_cpu_index; i++ ) { if ( cpu_to_core[i] == INVALID_TOPOLOGY_ID ) continue; -- 2.30.2